#include <stdio.h>
#include <stdlib.h>
#include <time.h>


int main()
{
    FILE *p = fopen("a.txt", "r");
    int array[256] = { 0 };
    while(!feof(p))
    {
        char buf[1024] = { 0 };
        fgets(buf, sizeof(buf), p);
        int a = atoi(buf);
        array[a]++;
    }
    fclose(p);
    return 0;
}

